Random access memory stream
Initializes a new MemoryStream object.
Initializes a new MemoryStream object.
Initializes a new MemoryStream object with the specified byte array.
Initializes a new MemoryStream object with the specified byte array.
Returns this stream as a Java java.io.InputStream.
Returns this stream as a Java java.io.OutputStream.
Closes the stream.
This method supports the internal library infrastructure and should not be used by external client code.
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Gets the length in bytes of the stream.
Gets the position within the current stream.
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
Sets the position within the current stream.
Sets the length of the current stream.
Sets the position within the current stream.
Converts the stream to a byte array
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Writes a byte to the current position in the stream and advances the position within the stream by one byte.